add_executable(CybertronMasterTest "")
include_directories("${CYBERTRON_PATH_FOUNDATION}/Source/CoreLibrary/include")
include_directories("${CYBERTRON_PATH_FOUNDATION}/Source/Protocol/Output/cpp")
include_directories("${CYBERTRON_PATH_ROOT}/3rdparty")


IF (MSVC)
	add_definitions(-D_WIN32_WINNT=0x0501)
ENDIF()

add_definitions(-DNOMINMAX)
add_definitions(-DUNICODE)
add_definitions(-D_UNICODE)
add_definitions(-DASIO_STANDALONE)
add_definitions(-D__DEBUG__)
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)

file(GLOB_RECURSE srcs *.h *.hh *i *.hpp *.c *.cc *.cpp)
target_sources(CybertronMasterTest PRIVATE ${srcs})

SetDefaultTargetProperties(CybertronMasterTest)

target_link_libraries(CybertronMasterTest CybertronCore)
target_link_libraries(CybertronMasterTest protobuf)


IF (WIN32)
	target_link_libraries(CybertronMasterTest ws2_32)
ENDIF()


IF (MSVC)
	SET_PROPERTY(TARGET CybertronMasterTest PROPERTY FOLDER "Tool")
ENDIF()